<template>
    <div class="m-header">
        <span class="m-backicon" v-if="hasBack"></span>
        <p>{{headerTitle}}</p>
    </div>
</template>
<script>
export default {
    name:'',
    props:['headerTitle','hasBack'],
    data () {
        return {

        }
    },
    methods: {

    },
    mounted() {
        let that = this;
    }
}
</script>

<style lang="less" scoped>
.m-header{
    background: white;
    height: 3rem;
    line-height: 3rem;
    position: relative;
    text-align: center;
    .m-backicon{
        position: absolute;
        left: 0;
        margin-left: 1rem;
        margin-top: 1rem;
        width: .9rem;
        height: .9rem;
        border-left: 1px solid @secondary-gray;
        border-bottom: 1px solid @secondary-gray;
        transform: rotate(45deg);
    }
}

</style>
